package com.jyxd.web.data.basic;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 呼吸机表
 */
@Entity
@Table(name = "table_respirator_data")
@Data
public class RespiratorData implements Serializable,Cloneable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 病人主键id
     */
    @Column(name = "patient_id")
    private String patientId;

    /**
     * 串口号
     */
    @Column(name = "com_number")
    private String comNumber;

    /**
     * 呼吸机模式
     */
    @Column(name = "mode")
    private String mode;

    /**
     * 潮气量
     */
    @Column(name = "fio2")
    private String fio2;

    /**
     * F
     */
    @Column(name = "F")
    private String f;
    /**
     * pinsp
     */
    @Column(name = "pinsp")
    private String pinsp;
    /**
     * ps
     */
    @Column(name = "ps")
    private String ps;
    /**
     * peep
     */
    @Column(name = "peep")
    private String peep;

    /**
     * ipap
     */
    @Column(name = "ipap")
    private String ipap;
    /**
     * epapc
     */
    @Column(name = "epapc")
    private String epapc;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 状态（0：禁用 1：正常 -1：删除）
     */
    @Column(name = "status")
    private int status;

}
